package com.yjq.tes;

import com.yjq.pojo.People;
import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Tett {
    @Test
    public void Test(){
        ApplicationContext Context = new ClassPathXmlApplicationContext("bean.xml");/**/
        People people = Context.getBean("people", People.class);
        people.getCat().shout();
        people.getDog().shout();
    }
}
